package deibay.client;

import deibay.client.core.views.IViewItemDetailsSeller;

/**
 * @author  Joel Cordeiro
 */
public abstract class ItemController {
	protected IViewItemDetailsSeller view = null;
	protected IModel model = null;
	
	public ItemController(IViewItemDetailsSeller view, IModel model)
	{
		this.view = view;
		this.model = model;		
		initView();
		createViewEvents();
	}
	
	public abstract void initView();	
	public abstract void createViewEvents();	
		
	/**
	 * @return
	 */
	public IModel getModel() {
		return model;
	}

	/**
	 * @return
	 */
	public IViewItemDetailsSeller getView() {
		return view;
	}		
}
